package com.wn.entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;

import javax.validation.constraints.Past;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.Date;

/**
 * (Userinfo)实体类
 *
 * @author makejava
 * @since 2020-10-26 09:43:15
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Userinfo implements Serializable {
    private static final long serialVersionUID = -16143167585554633L;
    /**
     *
     */
    private String id;

    @NotEmpty(message = "账号不能为空")
    @Size(min = 2,max = 10,message = "长度在2到10个字符")
    private String account;

    @NotEmpty(message = "密码不能为空")
    @Size(min = 6,max = 12,message = "长度在6-12个字符")
    private String password;

    private String hobby;

    @NotEmpty(message = "电话不能为空")
    @Size(min = 11,max = 11,message = "手机格式错误")
    private String phone;

    private String address;

    private String cardid;

    private String realname;

    @Past(message = "生日不能是未来时间")
    private Date birthday;

    private String cardimage;

    private Date createtime;

    private String createuserid;

    private Date updatetime;

    private String updateuserid;

    @ApiModelProperty(name = "isDeleted", value = "是否被删除 0有效 1无效")
    private Integer isdeleted;

    private Integer roleid;

    private String roleSign;


}
